<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="css/eui.css">
</head>
<body>
<div id="app">
  <el-container>
    <el-header style="background-color: #0095d7">
      <h1 style="font-size: 22px;color: white">CoolShark商城后台管理系统
      <span style="float: right;font-size: 15px">
        欢迎回来
        <a href="">退出登录</a>
      </span>
      </h1>
    </el-header>
    <el-container>
      <el-aside>
        <!--侧边栏开始-->
        <el-menu
                :default-openeds="['1']"
                class="el-menu-vertical-demo"
                @select="menuChange"
        >
          <el-submenu index="1">
            <template slot="title>">
              <i class="el-icon-s-flag"></i>
              分类管理
            </template>
            <el-menu-item index="1-1">分类列表</el-menu-item>
            <el-menu-item index="1-1">添加列表</el-menu-item>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-picture"></i>
              轮播图管理
            </template>
            <el-menu-item index="2-1">轮播图列表</el-menu-item>
            <el-menu-item index="2-1">添加轮播图</el-menu-item>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-shopping-cart-2"></i>
              商品管理
            </template>
            <el-menu-item index="3-1">商品列表</el-menu-item>
            <el-menu-item index="3-1">添加商品</el-menu-item>
          </el-submenu>
        </el-menu>
        <!--侧边栏结束-->
      </el-aside>
      <el-main>
        <!--分类表格开始-->
        <el-table :data="categoryArr">
          <el-table-column type="index" label="编号" width="140"></el-table-column>
          <el-table-column label="分类名称" prop="name"></el-table-column>
        </el-table>
        <!--分类表格结束-->
      </el-main>
    </el-container>
    <el-container>
      <el-aside></el-aside>
      <el-main></el-main>
    </el-container>
  </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="js/vue.js"></script>
<!-- import JavaScript -->
<script src="js/eui.js"></script>
<script>
  let v = new Vue({
    el: '#app',
    data: function() {
      return {
        categoryArr:[{name:"男装"},{name:"女装"},{name:"手机"},{name:"家电"}]
      }
    },
    methods:{
      menuChange(index){
        console.log(index);
      }
    }
  })
</script>
</html>